package com.xinhua.entity;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="t_surveyitem")
public class SurveyItem {
	private Integer id;
	private String name;
	
	private List<SurveyContent> Cont;
	
	public SurveyItem() {
		// TODO Auto-generated constructor stub
	}
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	
	public void setId(Integer id) {
		this.id = id;
	}

	@OneToMany(mappedBy="surveyItem")
	public List<SurveyContent> getCont() {
		return Cont;
	}

	public void setCont(List<SurveyContent> cont) {
		Cont = cont;
	}

	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
}
